<template>
  <el-container class="unauthorized-container">
    <el-main>
      <h1>未授权</h1>
      <p>您没有权限访问此页面。</p>
      <el-button type="primary" @click="goBack">返回</el-button>
    </el-main>
  </el-container>
</template>

<script>
export default {
  methods: {
    goBack() {
      this.$router.go(-1); // 返回上一页
    },
  },
};
</script>

<style scoped>
.unauthorized-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: white;
  text-align: center;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}
</style>